/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication6.DomainLayer;

/**
 *
 * @author meydlo
 */
public class Product {

     //
    private long id;

    //
    private String name;

    //
    private String description;

    //
    private double price;

    //
    private double discount=0;

    //
    private int noOfOneType;

    public String getDescription() {
        return description;
    }

    public double getDiscount() {
        return discount;
    }

    public int getNoOfOneType() {
        return noOfOneType;
    }

    public void setNoOfOneType(int noOfOneType) {
        this.noOfOneType = noOfOneType;
    }

    public long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }


    public void setDescription(String description) {
        this.description = description;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(double price) {
        this.price = price;
    }


    public void printProductInfo()
    {
        System.out.println(
                "\n id: "+getId()+
                "\n name: "+getName()+
                "\n price:"+getPrice()+
                "\n amount in stok: "+getNoOfOneType()+
                "\n description: "+getDescription()+
                "\n discount: "+getDiscount()
                );
    }
}
